﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;

namespace Automted_Bank_teller
{
    class payBillsLogic :payBilssProcess
    {
        public float sales, Purchases, dues; 
        
      
        //public void payBill()
        //{
        //   // allMoeny = return_balance() - return_moeny();
        //}

        public void bills()
        {
            Random moeny = new Random();
            sales = moeny.Next(1, 100);
            Purchases = moeny.Next(1, 100);
            dues = moeny.Next(1, 100);
           // bill = sales + Purchases + dues;
        }
        public void payBill(float sales, float dues, float Purchases)
        {

            allMoeny = return_balance() - (sales + dues + Purchases);
        }
               
        
         public float return_balance()
        { 
            return global_var.G_Current_Account_balance;
        }
        
         public float return_moeny()
         {
             return bill;
         }
         public float return_allmoeny()
         {
             return allMoeny;
         }
        public float return_sales()
         {
             return sales;
         }
        
        public float return_purchases()
         {
             return Purchases;
         }
         
        public float return_dues()
         {
             return dues;
         }
    
    }

}
